About Cosense
Help
Log in
競プロ
闘
本
8
.
5
再
帰
的
乗
算
提
出
t
x
t
d
e
f
m
u
l
t
i
(
x
,
y
,
t
o
t
a
l
)
:
i
f
y
=
=
0
:
r
e
t
u
r
n
t
o
t
a
l
t
o
t
a
l
+
=
x
m
u
l
t
i
(
x
,
y
-
1
,
t
o
t
a
l
)
Related
Sort by
Related
Modified
Created
Last visited
Most linked
Page rank
Title
Links
進捗テーブル
table: 理解度No5 解けた4 解けたけど要復習3 解説が完全に理解できる
Created
2 years ago
by
wafuwafu13
Updated
2 years ago
by
wafuwafu13
Views: 6
Page rank: 1.2
Copy link
Copy readable link
Start presentation
Hide dots
闘本 8.5 再帰的乗算
提出
code: txt
def multi(x, y, total):
if y == 0:
return total
total += x
multi(x, y-1, total)